; Events file
; Civ II ToT Original Game extension
; Copyright 1999 MicroProse Software
;
;
; Events text for "A House Divided 1861 - 1865" Scenario - Union human player
;

;
; Initialization
; --------------

@BEGINEVENTS
@INITFLAG
;@DEBUG

@IF
NOSCHISM
defender=ANYBODY
@THEN
@ENDIF

@IF
Turn
turn=1
@THEN
TEXT
Washington D.C., (AP) -- Abraham Lincoln elected, November 6 1860!
^
Lincoln is elected as the 16th President of the United States, beating Democrat 
Stephen A. Douglas. He is the first Republican president, winning entirely on the 
strength of his support in the North: he was not even on the ballot in nine states 
in the South.
ENDTEXT
@ENDIF

@IF
Turn
turn=1
@THEN
TEXT
Columbia, S.C., December 20 1860 - South Carolina secedes from the Union!
^
The force of events move very quickly upon the election of Lincoln. South Carolina, 
which did not cast a single vote for him, acts first, calling for a convention to 
SECEDE from the Union.
ENDTEXT
@ENDIF

@IF
Turn
turn=1
@THEN
TEXT
State by state, conventions are held, and the CONFEDERACY is formed. Within three 
months of Lincoln's election, South Carolina, Mississippi, Florida, Alabama, Georgia, 
Louisiana and Texas secede from the Union.
ENDTEXT
@ENDIF

@IF
TURN
turn=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Confederates
maprect
110,78,110,78,110,78,110,78
moveto
111,77
numbertomove=ALL
@ENDIF

@IF
TURN
turn=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Confederates
maprect
177,19,183,19,183,27,177,27
moveto
188,20
numbertomove=ALL
@ENDIF

@IF
UNITKILLED
unit=Fort
attacker=Confederates
defender=Union
@THEN
TEXT
REBELS STRIKE THE FIRST BLOW - FORT SUMTER SURRENDERS! 
^
On April 10, 1861, Brig. Gen. Beauregard, in command of the provisional Confederate 
forces at Charleston, South Carolina, demands the surrender of the Union garrison of 
Fort Sumter in Charleston Harbor. Garrison commander Major Anderson refuses. On April 12, 
Confederate batteries open fire on the fort. The following day, Anderson surrenders 
the fort and orders the evacuation of the garrison. The bombardment is the opening 
engagement of the American Civil War.  
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=Fort
attacker=Confederates
defender=Union
@THEN
TEXT
After the surrender of Fort Sumter, Virginia, Arkansas, Tennessee and North Carolina 
join the Confederacy.
^
Everyone predicts a short war. Most believe that one battle of enormous proportion will 
settle a dispute at least 90 years in the making. 
^
As president and Commander-in-chief the burden rests upon your shoulders to preserve the 
Union. Will you be able to successfully marshall the large resource at your command and 
break the southern rebellion. Can you restore the Union or will the South's fight for 
independence succeed?
ENDTEXT
@ENDIF


;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Random Border States Civilian 'Reinforcements' ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;Missouri

@IF
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
unit=Armed Civilians
owner=Border States
veteran=no
homecity=None
locations
49,45
38,46
25,43
33,55
endlocations
@ENDIF

;Kentucky

@IF
RANDOMTURN
denominator=7
@THEN
CREATEUNIT
unit=Armed Civilians
owner=Border States
veteran=no
homecity=None
locations
73,45
67,49
70,54
80,46
endlocations
@ENDIF

;Delaware & Maryland

@IF
RANDOMTURN
denominator=8
@THEN
CREATEUNIT
unit=Armed Civilians
owner=Border States
veteran=no
homecity=None
locations
120,30
125,27
114,32
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Border States Civilians Join Confederate Forces ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
UNITKILLED
unit=Armed Civilians
attacker=Union
defender=Border States
@THEN
TEXT
REPRESSIVE UNION OCCUPATION POLICIES ALIENATES LOCAL POPULATION!
^
Pro-Southern sympathizers from the state flee to join the ranks of the Confederate Army.  
ENDTEXT
CREATEUNIT
unit=CSA Infantry
owner=Confederates
veteran=no
homecity=no
Randomize
locations
68,60
118,48
77,67
120,52
60,70
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Confederate Guerrilla Bands Reinfocerments ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;Missouri

@IF
CheckFlag
Who=Confederates
Mask=0x18 ; Little Rock and Springfield MO* not captured
Count=2
State=Off
@AND
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
unit=Guerilla Band
owner=Confederates
veteran=Yes
homecity=None
Randomize
locations
31,45
38,54
48,52
endlocations
@ENDIF

;Kentucky

@IF
CheckFlag
Who=Confederates
Mask=0x20020 ; Knoxville and Lexington * not captured
Count=2
State=Off 
@AND
RANDOMTURN
denominator=8
@THEN
CREATEUNIT
unit=Guerilla Band
owner=Confederates
veteran=Yes
homecity=None
Randomize
locations
90,48
84,54
78,52
60,56
endlocations
@ENDIF

;Shenandoah Valley

@IF
CheckFlag
Who=Confederates
Mask=0x240 ; Roanoke and Charleston WV * not captured
Count=2
State=Off 
@AND
RANDOMTURN
denominator=9
@THEN
CREATEUNIT
unit=Guerilla Band
owner=Confederates
veteran=Yes
homecity=None
Randomize
locations
109,37
105,43
100,42
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Random Confederate Militia Reinfocerments ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CheckFlag
Who=Confederates
Flag=0	; Atlanta not captured
State=Off 
@AND
RANDOMTURN
denominator=3
@THEN
TEXT
The governor of the state of Georgia raises a new militia unit!
ENDTEXT
CREATEUNIT
unit=Georgia Inf.
owner=Confederates
veteran=no
homecity=None
Randomize
locations
84,76
98,76
89,81
104,84
endlocations
@ENDIF

@IF
CheckFlag
Who=Confederates
Flag=1	; Raleigh not captured
State=Off 
@AND
RANDOMTURN
denominator=4
@THEN
TEXT
The governor of the state of North Carolina raises a new militia unit!
ENDTEXT
CREATEUNIT
unit=N. Carolina Inf.
owner=Confederates
veteran=no
homecity=None
Randomize
locations
113,57
113,63
119,67
104,56
endlocations
@ENDIF

@IF
CheckFlag
Who=Confederates
Flag=2	; Austin not captured
State=Off 
@AND
RANDOMTURN
denominator=5
@THEN
TEXT
The governor of the state of Texas raises a new militia unit!
ENDTEXT
CREATEUNIT
unit=Texas Inf.
owner=Confederates
veteran=no
homecity=None
Randomize
locations
2,110
8,122
21,107
29,107
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Confederate Entrenched Infantry ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RECEIVEDTECHNOLOGY
technology=8
receiver=Confederates
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=CSA Entrenched
owner=Confederates
veteran=no
homecity=None
Randomize
locations
118,48
68,60
110,78
84,76
77,67
105,47
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Confederate Siege Mortar ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RECEIVEDTECHNOLOGY
technology=33
receiver=Confederates
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=CSA Siege Mortar
owner=Confederates
veteran=no
homecity=None
Randomize
locations
118,48
68,60
110,78
84,76
77,67
120,52
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=33
receiver=Confederates
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=CSA Field Art.
owner=Confederates
veteran=no
homecity=None
Randomize
locations
118,48
68,60
110,78
84,76
77,67
120,52
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Eastern Confederate States Reinforcements ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;The Confederates will continue to receive reinforcements from the East as long as 
;the Mississippi river cities aren't all under Union control.

; Reinforcements for the Army of Northern Virginia

@IF
CheckFlag
Who=Union
Mask=0x1F
Count=5
State=Off	 
@AND
RANDOMTURN
denominator=3
@THEN
TEXT
A new infantry brigade from the east arrives to bolster the Confederate Army of Northern Virginia!
ENDTEXT
CREATEUNIT
unit=CSA Infantry
owner=Confederates
veteran=no
homecity=None
locations
118,48
120,52
113,57
103,71
endlocations
@ENDIF

@IF
CheckFlag
Who=Union
Mask=0x1F
Count=5
State=Off	 
@AND
RANDOMTURN
denominator=12
@THEN
TEXT
A new calvary brigade from the east arrives to bolster the Confederate Army of Northern Virginia!
ENDTEXT
CREATEUNIT
unit=CSA Cavalry
owner=Confederates
veteran=no
homecity=None
locations
118,48
120,52
113,57
103,71
endlocations
@ENDIF

@IF
CheckFlag
Who=Union
Mask=0x1F
Count=5
State=Off	 
@AND
RANDOMTURN
denominator=16
@THEN
TEXT
A new artillery brigade from the east arrives to bolster the Confederate Army of Northern Virginia!
ENDTEXT
CREATEUNIT
unit=CSA Field Art.
owner=Confederates
veteran=no
homecity=None
locations
118,48
120,52
113,57
103,71
endlocations
@ENDIF

; Reinforcements for the Army of Tennessee

@IF
CheckFlag
Who=Union
Mask=0x1F
Count=5
State=Off	 
@AND
RANDOMTURN
denominator=3
@THEN
TEXT
A new infantry brigade from the east arrives to bolster the Confederate Army of Tennessee!
ENDTEXT
CREATEUNIT
unit=CSA Infantry
owner=Confederates
veteran=no
homecity=None
Randomize
locations
68,60
77,67
84,60
84,76
endlocations
@ENDIF

@IF
CheckFlag
Who=Union
Mask=0x1F
Count=5
State=Off	 
@AND
RANDOMTURN
denominator=12
@THEN
TEXT
A new cavalry brigade from the east arrives to bolster the Confederate Army of Tennessee!
ENDTEXT
CREATEUNIT
unit=CSA Cavalry
owner=Confederates
veteran=no
homecity=None
Randomize
locations
68,60
77,67
84,60
84,76
endlocations
@ENDIF

@IF
CheckFlag
Who=Union
Mask=0x1F
Count=5
State=Off	 
@AND
RANDOMTURN
denominator=16
@THEN
TEXT
A new artillery brigade from the east arrives to bolster the Confederate Army of Tennessee!
ENDTEXT
CREATEUNIT
unit=CSA Field Art.
owner=Confederates
veteran=no
homecity=None
Randomize
locations
68,60
77,67
84,60
84,76
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Random Confederate Naval Shell Replacements & Sea Mines ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;--- Mississippi Valley

@IF
RANDOMTURN
denominator=7
@THEN
CREATEUNIT
unit=Naval Shell
owner=Confederates
veteran=no
homecity=None
Randomize
locations
54,62
51,69
47,101
47,89
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
unit=Sea Mines
owner=Confederates
veteran=no
homecity=None
Randomize
locations
47,101
47,89
51,69
54,62
endlocations
@ENDIF

;--- Gulf of Mexico

@IF
RANDOMTURN
denominator=8
@THEN
CREATEUNIT
unit=Naval Shell
owner=Confederates
veteran=no
homecity=None
Randomize
locations
24,110
8,122
53,105
100,114
70,100
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
unit=Sea Mines
owner=Confederates
veteran=no
homecity=None
Randomize
locations
117,129
65,99
53,105
24,110
endlocations
@ENDIF

;--- Confederate East Coast

@IF
RANDOMTURN
denominator=7
@THEN
CREATEUNIT
unit=Naval Shell
owner=Confederates
veteran=no
homecity=None
Randomize
locations
104,84
110,78
119,67
104,96
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
unit=Sea Mines
owner=Confederates
veteran=no
homecity=None
Randomize
locations
104,96
119,67
104,84
110,78
endlocations
@ENDIF

;--- Chesapeake Bay

@IF
RANDOMTURN
denominator=8
@THEN
CREATEUNIT
unit=Naval Shell
owner=Confederates
veteran=no
homecity=None
Randomize
locations
123,43
125,47
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
unit=Sea Mines
owner=Confederates
veteran=no
homecity=None
Randomize
locations
125,47
123,43
endlocations
@ENDIF

;--- Richmond Area

@IF
CheckFlag
Who=Confederates
Mask=0xC00
Count=1
State=On	 
@THEN
JUSTONCE
CREATEUNIT
unit=Naval Shell
count=4
owner=Confederates
veteran=no
homecity=None
Randomize
locations
118,48
120,52
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Random Confederate Privateer 'Reinforcements' ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RANDOMTURN
denominator=6
@THEN
TEXT
Confederate agents take possession of a new naval ship produced in British shipyards and 
convert it into a privateer to raid Union shipping lanes. 
ENDTEXT
CREATEUNIT
unit=Privateer
owner=Confederates
veteran=no
homecity=None
Randomize
locations
180,0
181,9
186,26
132,120
141,127
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=0
receiver=Confederates
@THEN
JUSTONCE
CREATEUNIT
unit=CSS Ironclad
owner=Confederates
veteran=no
homecity=None
Randomize
locations
125,47
119,67
104,84
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Union Military Losses / Confederate Gains ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
UNITKILLED
unit=US Militia
attacker=Confederates
defender=Union
@THEN
TEXT
Victorious Southern troops seize large quantities of supplies after defeating a Union militia brigade.  
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=30
@ENDIF

@IF
UNITKILLED
unit=US Infantry
attacker=Confederates
defender=Union
@THEN
TEXT
Victorious Southern troops seize large quantities of supplies after defeating a Union infantry brigade. 
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=50
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Confederate Privateers destroy Union transports ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
UNITKILLED
unit=Clipper
attacker=Confederates
defender=Union
@THEN
TEXT
SOUTHERN PIRACY ON THE HIGH SEAS!
^
Confederate privateers sailing the Atlantic have attacked Union ships and seized their cargo.  
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=30
@ENDIF

@IF
UNITKILLED
unit=Transport
attacker=Confederates
defender=Union
@THEN
TEXT
SOUTHERN PIRACY ON THE HIGH SEAS!
^
Confederate privateers sailing the Atlantic have attacked Union ships and seized their cargo. 
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=40
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Union Capture of Confederate Cities - Battles ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


@IF
CITYTAKEN
city=Manassas
attacker=Union
defender=Confederates
@THEN
JUSTONCE
TEXT
FIRST BATTLE OF BULL RUN!
^
The First Battle of Bull Run, also known as First Manassas, was fought on July 21, 1861, 
in Prince William County, Virginia, near the city of Manassas. It was the first major land 
battle of the American Civil War
ENDTEXT
Delay
delay=1
CREATEUNIT
unit=CSA Infantry 
count=4
owner=Confederates
veteran=no
homecity=None
locations
115,39
118,38
117,39
114,38
115,41
endlocations
@ENDIF

@IF
CITYTAKEN
city=Manassas
attacker=Union
defender=Confederates
@THEN
JUSTONCE
Delay
delay=1
CREATEUNIT
unit=CSA Raiders
owner=Confederates
veteran=no
homecity=None
locations
115,39
118,38
117,39
114,38
115,41
endlocations
@ENDIF

@IF
CITYTAKEN
city=Manassas
attacker=Union
defender=Confederates
@THEN
JUSTONCE
Delay
delay=1
CREATEUNIT
unit=CSA Light Art.
owner=Confederates
veteran=no
homecity=None
locations
115,39
118,38
117,39
114,38
115,41
endlocations
@ENDIF

@IF
CITYTAKEN
city=Fredericksburg
attacker=Union
defender=Confederates
@THEN
JUSTONCE
TEXT
BATTLE OF FREDERICKSBURG!
^
The Battle of Fredericksburg was fought December 1115, 1862, in and around Fredericksburg, 
Virginia, between General Lee's Army of Northern Virginia and the Union Army of the Potomac, 
commanded by Maj. Gen. Burnside. The Union army's futile frontal attacks on December 13 against 
entrenched Confederate defenders on the heights behind the city is remembered as one of the most 
one-sided battles of the American Civil War.
ENDTEXT
Delay
delay=1
CREATEUNIT
unit=CSA Infantry
count=5
owner=Confederates
veteran=no
homecity=None
locations
115,39
118,38
117,39
114,38
115,41
endlocations
@ENDIF

@IF
CITYTAKEN
city=Fredericksburg
attacker=Union
defender=Confederates
@THEN
JUSTONCE
Delay
delay=1
CREATEUNIT
unit=CSA Cavalry
owner=Confederates
veteran=no
homecity=None
locations
115,39
118,38
117,39
114,38
115,41
endlocations
@ENDIF

@IF
CITYTAKEN
city=Fredericksburg
attacker=Union
defender=Confederates
@THEN
JUSTONCE
Delay
delay=1
CREATEUNIT
unit=CSA Field Art.
count=2
owner=Confederates
veteran=no
homecity=None
locations
115,39
118,38
117,39
114,38
115,41
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Union Capture of Confederate Cities - Raiders and ChangeTerrain ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;Raiders

@IF
CITYTAKEN
city=Lexington *
attacker=Union
defender=Confederates
@THEN
Delay
delay=1
CREATEUNIT
unit=CSA Raiders
owner=Confederates
veteran=no
homecity=None
Randomize
locations
82,42
78,48
77,43
endlocations
@ENDIF

@IF
CITYTAKEN
city=Bowling Green *
attacker=Union
defender=Confederates
@THEN
JUSTONCE
Delay
delay=2
CREATEUNIT
unit=CSA Raiders
owner=Confederates
veteran=no
homecity=None
Randomize
locations
66,56
72,52
74,54
endlocations
@ENDIF

@IF
CITYTAKEN
city=Nashville
attacker=Union
defender=Confederates
@THEN
JUSTONCE
Delay
delay=2
CREATEUNIT
unit=CSA Raiders
count=3
owner=Confederates
veteran=no
homecity=None
Randomize
locations
65,57
64,62
71,57
endlocations
@ENDIF

@IF
CITYTAKEN
city=Corinth
attacker=Union
defender=Confederates
@THEN
JUSTONCE
Delay
delay=3
CREATEUNIT
unit=CSA Raiders
count=3
owner=Confederates
veteran=no
homecity=None
Randomize
locations
63,69
58,66
57,73
endlocations
@ENDIF

;ChangeTerrain

@IF
CITYTAKEN
city=Chattanooga
attacker=Union
defender=Confederates
@THEN
JUSTONCE
TEXT
Confederate forces blow the rail lines betwen Chattanooga and Atlanta to slow the Union advance.
ENDTEXT
PLAYWAVEFILE
Largexpl.wav
ChangeTerrain
terraintype=4
maprect
80,72,80,72,80,72,80,72
@ENDIF

@IF
CITYTAKEN
city=Chattanooga
attacker=Union
defender=Confederates
@THEN
JUSTONCE
ChangeTerrain
terraintype=4
maprect
81,73,81,73,81,73,81,73
@ENDIF

@IF
CITYTAKEN
city=Atlanta
attacker=Union
defender=Confederates
@THEN
JUSTONCE
TEXT
Confederate forces blow the rail lines betwen Atlanta, Macon and Augusta to slow the Union advance.
ENDTEXT
PLAYWAVEFILE
Largexpl.wav
CHANGETERRAIN
terraintype=0
maprect
87,77,87,77,87,77,87,77
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Atlanta
attacker=Union
defender=Confederates
@THEN
JUSTONCE
ChangeTerrain
terraintype=0
maprect
88,80,88,80,88,80,88,80
@ENDIF

@IF
CITYTAKEN
city=Atlanta
attacker=Union
defender=Confederates
@THEN
JUSTONCE
ChangeTerrain
terraintype=0
maprect
96,76,96,76,96,76,96,76
@ENDIF

@IF
CITYTAKEN
city=Macon
attacker=Union
defender=Confederates
@THEN
JUSTONCE
TEXT
Confederate forces blow the rail lines betwen Macon and Savannah to slow the Union advance.
ENDTEXT
PLAYWAVEFILE
Largexpl.wav
CHANGETERRAIN
terraintype=0
maprect
96,84,96,84,96,84,96,84
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Macon
attacker=Union
defender=Confederates
@THEN
JUSTONCE
CHANGETERRAIN
terraintype=0
maprect
103,85,103,85,103,85,103,85
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Macon
attacker=Union
defender=Confederates
@THEN
JUSTONCE
CHANGETERRAIN
terraintype=0
maprect
90,84,90,84,90,84,90,84
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Augusta
attacker=Union
defender=Confederates
@THEN
JUSTONCE
TEXT
Confederate forces blow the rail lines betwen Augusta and Charleston to slow the Union advance.
ENDTEXT
PLAYWAVEFILE
Largexpl.wav
CHANGETERRAIN
terraintype=0
maprect
99,75,99,75,99,75,99,75
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Augusta
attacker=Union
defender=Confederates
@THEN
CHANGETERRAIN
terraintype=0
maprect
103,73,103,73,103,73,103,73
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Augusta
attacker=Union
defender=Confederates
@THEN
JUSTONCE
CHANGETERRAIN
terraintype=0
maprect
109,77,109,77,109,77,109,77
JUSTONCE
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Confederate Campaigns (Through Technology Research) ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;Heartland Offensive - Receive Tech 93 and possess Chattanooga

@IF
RECEIVEDTECHNOLOGY
technology=93
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=7	; Chattanooga not captured by Union
State=Off
@THEN
JUSTONCE
TEXT
THE SOUTH LAUNCHES ITS HEARTLAND OFFENSIVE TO RECAPTURE KENTUCKY!
^
General J.E. Johnston takes command of the southern bid to gain control of the border state.
ENDTEXT
CREATEUNIT
unit=J.E. Johnston
owner=Confederates
veteran=yes
homecity=none
locations
68,60
77,67
84,60
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=93
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=7	; Chattanooga not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Infantry
count=7
owner=Confederates
veteran=no
homecity=None
locations
68,60
77,67
84,60
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=93
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=7	; Chattanooga not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Cavalry
count=2
owner=Confederates
veteran=no
homecity=None
locations
68,60
77,67
84,60
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=93
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=7	; Chattanooga not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Field Art.
count=2
owner=Confederates
veteran=no
homecity=None
locations
68,60
77,67
84,60
endlocations
@ENDIF

;Chattanooga Campaign - Receive Tech 94 and and possess Atlanta

@IF
RECEIVEDTECHNOLOGY
technology=94
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=0	; Atlanta not captured by Union
State=Off
@THEN
JUSTONCE
TEXT
THE SOUTH LAUNCHES ITS CHATTANOOGA CAMPAIGN TO RECAPTURE KENTUCKY!
ENDTEXT
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=94
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=0	; Atlanta not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Infantry
count=6
owner=Confederates
veteran=no
homecity=None
locations
77,67
84,60
84,76
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=94
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=0	; Atlanta not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Cavalry
count=2
owner=Confederates
veteran=no
homecity=None
locations
77,67
84,60
84,76
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=94
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=0	; Atlanta not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Field Art.
count=2
owner=Confederates
veteran=no
homecity=None
locations
77,67
84,60
84,76
endlocations
@ENDIF

; Antietam (Maryland) Campaign

@IF
RECEIVEDTECHNOLOGY
technology=95
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=8	; Richmond not captured by Union
State=Off
@THEN
JUSTONCE
TEXT
THE SOUTH LAUNCHES ITS OFFENSIVE INTO MARYLAND!
^
General J.E.B. Stuart joins Lee's command.
ENDTEXT
CREATEUNIT
unit=J.E.B. Stuart
owner=Confederates
veteran=no
homecity=None
locations
116,44
114,42
118,42
119,41
118,48
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=95
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=8	; Richmond not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Infantry
count=6
owner=Confederates
veteran=no
homecity=None
locations
116,44
114,42
118,42
119,41
118,48
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=95
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=8	; Richmond not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Cavalry
owner=Confederates
veteran=no
homecity=None
locations
116,44
114,42
118,42
119,41
118,48
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=95
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=8	; Richmond not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Field Art.
owner=Confederates
veteran=no
homecity=None
locations
116,44
114,42
118,42
119,41
118,48
endlocations
@ENDIF

; Gettysburg Campaign

@IF
RECEIVEDTECHNOLOGY
technology=96
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=8	; Richmond not captured by Union
State=Off
@THEN
JUSTONCE
TEXT
THE SOUTH LAUNCHES ITS OFFENSIVE INTO PENNSYLVANIA!
^
The Army of Northern Virginia intends to bring the war to the Union.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=96
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=8	; Richmond not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Infantry
count=9
owner=Confederates
veteran=no
homecity=None
locations
116,36
116,42
117,43
118,48
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=96
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=8	; Richmond not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Cavalry
count=3
owner=Confederates
veteran=no
homecity=None
locations
116,36
116,42
117,43
118,48
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=96
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=8	; Richmond not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Field Art.
count=2
owner=Confederates
veteran=no
homecity=None
locations
116,36
116,42
117,43
118,48
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=96
receiver=Confederates
@AND
CheckFlag
Who=Confederates
Flag=8	; Richmond not captured by Union
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=CSA Siege Mortar
owner=Confederates
veteran=no
homecity=None
locations
116,36
116,42
117,43
118,48
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Confederate & Union BattleField Commanders ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;--- Union Commanders 

: If President Abraham Lincoln dies the game ends for the Union.

@IF
UNITKILLED
unit=Lincoln
attacker=ANYBODY
defender=Union
@THEN
JUSTONCE
TEXT
THE ARMY OF NORTHERN VIRGINA OVERRUNS WASHINGTON D.C.!
^
General Lee's Army has captured the Union capital. President Lincoln is killed
in the crossfire when Confederate forces assault the White House. The greatest
champion for the Union cause is dead. Republican party leaders are in disarray and
the Democrats seize the opportunity to begin peace talks with the South.
^
THE WAR IS OVER! THE SOUTH HAS WON ITS INDEPENDANCE!
ENDTEXT
EndGame
endscreens=yes
@ENDIF

;G.B. McClellan
@IF
Turn
turn=8
@THEN
JUSTONCE
TEXT
G.B. McCLELLAN APPOINTED GENERAL IN CHIEF BY LINCOLN!
^ 
On November 1, 1861, Winfield Scott retires and Lincoln appoints G.B. McClellan 
as General-in-Chief of all the Union armies!
ENDTEXT
CREATEUNIT
unit=G.B. McClellan
owner=Union
veteran=no
homecity=None
locations
119,33
126,24
134,18
endlocations
@ENDIF

@IF
UNITKILLED
unit=G.B. McClellan
attacker=ANYBODY
defender=Union
@THEN
JUSTONCE
TEXT
GENERAL GEORGE McCLELLAN DIES IN BATTLE!
^
The Union general falls to a Confederate bullet. The Army of the Potomac mourns 
the loss of its beloved chief. Lincoln is desperate to find a commander who can 
lead his forces to victory.
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=300
@ENDIF

;U.S. Grant
@IF
CheckFlag
Who=Union
Mask=0x3
Count=2
State=On	 
@THEN
JUSTONCE
TEXT
ULYSSES S. GRANT APPOINTED COMMANDER OF WESTERN THEATER BY LINCOLN!
^
After leading succesful operations in the Western Theater, Lincoln promotes 
Ulysses S. Grant to a senior command! When asked why, Lincoln states:
"I can't spare this man, he fights!"
ENDTEXT
Delay
delay=1
CREATEUNIT
unit=U.S. Grant
owner=Union
veteran=no
homecity=None
Randomize
locations
51,69
62,48
endlocations
@ENDIF

@IF
UNITKILLED
unit=U.S. Grant
attacker=ANYBODY
defender=Union
@THEN
JUSTONCE
TEXT
GENERAL GRANT KILLED IN BATTLE!
^
The greatest Union General is felled by an enemy bullet. Is there any Union general that can replace 
him and lead the Northern armies to victory?
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=300
@ENDIF

;W.T. Sherman
@IF
CheckFlag
Who=Union
Mask=0xC7
Count=3
State=On	 
@THEN
JUSTONCE
TEXT
GRANT'S PROTEGE, W.T. SHERMAN, PROMOTED TO SENIOR COMMAND!
^
After distinguishing himself in the Western Theater, Grant promotes W.T. Sherman to a new command!
ENDTEXT
Delay
delay=1
CREATEUNIT
unit=W.T. Sherman
owner=Union
veteran=no
homecity=None
Randomize
locations
51,69
62,48
68,60
endlocations
@ENDIF

@IF
UNITKILLED
unit=W.T. Sherman
attacker=ANYBODY
defender=Union
@THEN
JUSTONCE
TEXT
GENERAL SHERMAN FELLED IN BATTLE!
^
The Union General falls to a Confederate bullet. The North loses one it's ablest military commanders!
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=200
@ENDIF

;P. Sheridan
@IF
CheckFlag
Who=Union
Mask=0xC7
Count=4
State=On	 
@THEN
JUSTONCE
TEXT
PHIL SHERIDAN BECOMES SENIOR UNION CALVARY COMMANDER!
^
After leading successful cavalry raids in the Western Theater, Grant promotes Phil Sheridan!
ENDTEXT
Delay
delay=1
CREATEUNIT
unit=P. Sheridan
owner=Union
veteran=no
homecity=None
Randomize
locations
62,48
68,60
51,69
endlocations
@ENDIF

@IF
UNITKILLED
unit=P. Sheridan
attacker=ANYBODY
defender=Union
@THEN
JUSTONCE
TEXT
GENERAL SHERIDAN LOST BATTLING THE REBELS!
^
The Union General falls to a Confederate bullet. The Union loses it's ablest calvary commander!
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=100
@ENDIF

; D.G. Farragut & the New Orleans naval expedition
@IF
TURN
turn=7
@THEN
TEXT
OCTOBER 1861: SECRET NAVAL COMMUNIQUE!
^
The Union High Command is planning an audacious naval expedition against New Orleans. 
It is assembling a naval force of 2 fast transports, marines and naval stores (shells) 
in Atlantic City in 3 months time. 
^
If you are bold enough, as commander-in-chief to give the order to proceed, we recommend 
you assemble the necessary land forces (artillery, cavalry, etc), mortar schooner and 
frigates in that city to accompany the invasion fleet.    
ENDTEXT
@ENDIF

@IF
TURN
turn=10
@THEN
TEXT
David G. Farragut is given command of the New Orleans operation and makes the steam warship 
USS Hartford his flagship.
^
Naval intelligence reports the possibility of enemy privateers roaming the seas.
^
BEWARE AND GOOD LUCK!
ENDTEXT
CREATEUNIT
unit=USS Hartford
owner=Union
veteran=yes
homecity=none
locations
131,27
endlocations
@ENDIF

@IF
TURN
turn=10
@THEN
JUSTONCE
CREATEUNIT
unit=Transport
count=2
owner=Union
veteran=no
homecity=none
locations
131,27
endlocations
@ENDIF

@IF
TURN
turn=10
@THEN
JUSTONCE
CREATEUNIT
unit=USMC
count=2
owner=Union
veteran=yes
homecity=none
locations
131,27
endlocations
@ENDIF

@IF
TURN
turn=10
@THEN
JUSTONCE
CREATEUNIT
unit=Naval Shell
count=4
owner=Union
veteran=no
homecity=none
locations
131,27
endlocations
@ENDIF

;--- Confederate Commanders

;T.J. Jackson

@IF
TURN
turn=8
@THEN
TEXT
NOVEMBER 1861, 'STONEWALL' JACKSON PROMOTED TO MAJOR GENERAL!
^
Thomas Jonathan Jackson earned his nickname at the First Battle of Bull Run in July 1861 when 
he rushed his troops forward to close a gap in the line against a determined Union attack. Upon 
observing Jackson, one of his fellow generals reportedly said, "Look, men, there is Jackson standing 
like a stone wall!", a comment that spawned Jacksons nickname.
ENDTEXT
CREATEUNIT
unit=T.J. Jackson
owner=Confederates
veteran=yes
homecity=none
locations
109,41
105,47
118,48
endlocations
@ENDIF

@IF
UNITKILLED
unit=T.J. Jackson
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=12 ; If 3 of 5 Confederate Commanders killed get Gettysburg Address
TEXT
STONEWALL JACKSON KILLED IN BATTLE!
^
The beloved Confederate General falls to a Federal Mini ball. Lee loses his most daring commander.
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=-200
@ENDIF

;R.E. Lee

@IF
TURN
turn=17
@THEN
TEXT
GENERAL LEE TAKES COMMAND OF THE ARMY OF NORTHERN VIRGINIA! 
^
Earlier in 1861 President Lincoln had invited Lee, already a distinguished soldier and 
tactician, to take command of the Union Army, but he refused and chose instead to remain 
loyal to his home state of Virginia when it seceded from the Union.
^
Lee was called upon to replace Joseph E. Johnston, to command the Army of Northern Virginia. 
Commonly referred to as "Lee's Army," it became the Confederacy's main fighting force in the 
Eastern Theater of the Civil War and would gain it's commander undying devotion and admiration. 
ENDTEXT
CREATEUNIT
unit=R.E. Lee
owner=Confederates
veteran=yes
homecity=none
locations
118,48
120,52
113,57
endlocations
@ENDIF

@IF
UNITKILLED
unit=R.E. Lee
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=13 ; If 3 of 5 Confederate Commanders killed get Gettysburg Address
TEXT
GENERAL LEE KILLED IN BATTLE!
^
The beloved Confederate General falls to a Federal Mini ball. The South mourns the
loss of its most daring and innovative commander... What will become of Virginia now 
that her favorite son is no longer?
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=-400
@ENDIF

;N.B. Forrest

@IF
TURN
turn=17
@THEN
TEXT
GENERAL NETHAN BEDFORD FORREST PROMOTED!
^
General Forrest leads his first command at the Fisrt Battle of Muffreesboro. His men surprise 
and quickly overrun the camps of several small Federal units forcing them to surrender.  
ENDTEXT
CREATEUNIT
unit=N.B. Forrest
owner=Confederates
veteran=yes
homecity=none
locations
68,60
77,67
84,60
endlocations
@ENDIF

@IF
UNITKILLED
unit=N.B. Forrest
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=14 ; If 3 of 5 Confederate Commanders killed get Gettysburg Address
TEXT
GENERAL FORREST KILLED IN BATTLE!
^
The daring Confederate General is killed in battle. The South mourns, while the North rejoices... 
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=-100
@ENDIF

;J.E. Johnston created if 'Heartland Offensive' technology developed

@IF
UNITKILLED
unit=J.E. Johnston
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=15 ; If 3 of 5 Confederate Commanders killed get Gettysburg Address
TEXT
GENERAL JOHNSTON KILLED IN BATTLE
^
The much maligned Confederate general falls to enemy bullets. It's another blow to 
the Confederacy's struggle to win her independence.
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=-100
@ENDIF

;J.E.B. Stuart created if Antietam Campaign' technology developed

@IF
UNITKILLED
unit=J.E.B. Stuart
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=16 ; If 3 of 5 Confederate Commanders killed get Gettysburg Address
TEXT
GENERAL STUART KILLED IN BATTLE
^
The renowned Confederate cavalry general is killed leading his men against Federal positions.
ENDTEXT
CHANGEMONEY
receiver=Confederates
amount=-100
@ENDIF

;CSS Alabama

@IF
RECEIVEDTECHNOLOGY
technology=0
receiver=Confederates
@AND
RANDOMTURN
denominator=10
@THEN
JUSTONCE
TEXT
CSS ALABAMA JOINS THE CONFEDERATE NAVY!
^
Captain Raphael Semmes takes command of the Alabama which will prove to be the most dangerous 
raider in the Confederate fleet and a blight to Union shipping.
ENDTEXT
CREATEUNIT
unit=CSS Alabama
owner=Confederates
veteran=no
homecity=None
locations
123,43
125,47
119,67
110,78
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- USMC & CSMAC BRIGADES ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RANDOMTURN
denominator=8
@THEN
TEXT
The United States Congress approves the creation of a new marine brigade!
ENDTEXT
CREATEUNIT
unit=USMC
owner=Union
veteran=no
homecity=None
Randomize
locations
126,24
134,18
143,3
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=10
@THEN
TEXT
The Confederate Congress approves the creation of a new marine brigade!
ENDTEXT
CREATEUNIT
unit=CSAMC
owner=Confederates
veteran=no
homecity=None
Randomize
locations
127,47
110,78
104,84
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- CONFEDERATE FLAGS ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Atlanta
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=0 ;  Capture of Atlanta prevents Southern Tech based Campaigns (TECH 94) and Milita reinforcements
JUSTONCE
TEXT
ATLANTA FALLS TO THE THE UNION ARMY!
^
After a prolonged battle the defenses of the city are breached and the 
heartland of the Confederacy now lays open to invasion by the Federal Army. 
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Raleigh
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=1 ; Capture of Raleigh prevents North Carolina milita reinforcements
JUSTONCE
TEXT
RALEIGH FALLS TO THE UNION ARMY!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Austin
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=2 ; Capture of Austin prevents Texas milita reinforcements
JUSTONCE
TEXT
AUSTIN FALLS TO THE UNION ARMY!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Columbia
attacker=Union
defender=Confederates
@THEN
JUSTONCE
TEXT
THE UNION CAPTURES THE HEART OF THE REBELLION!
^
South Carolina was the first southern state to vote to secede from the Union. 
^
Upon entering the state General Sherman declares: "The truth is, the whole army is burning with 
an insatiable desire to wreak vengeance upon South Carolina. I almost tremble at her fate, 
but feel that she deserves all that seems in store for her."
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Springfield MO*
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=3 ; Capture of Springfield MO* and Little Rock ends guerrila bands in Missouri
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Little Rock
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=4 ; Capture of Springfield MO* and Little Rock ends guerrila bands in Missouri
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Knoxville
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=5 ; Capture of Lexington * and Knoxville ends guerrila bands in Kentucky
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Roanoke
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=6 ; Capture of Roanoke and Charleston Wv * ends guerrila bands in W. Virginia
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Chattannooga
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=7 ; Capture of Chattannooga prevents Southern Tech based Campaigns (TECH 93)
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Richmond
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=8 ; Capture of Richmond prevents Southern Tech based Campaigns (TECH 95 & 96)
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Charleston WV *
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=9 ; Capture of Roanoke and Charleston Wv * ends guerrila bands in W. Virginia
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Fredericksburg
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=10 ; Capture of Fredericksburg/Norfolk activates Ricmond/Petersburg Naval shells
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Norfolk
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=11 ; Capture of Fredericksburg/Norfolk activates Ricmond/Petersburg Naval shells
JUSTONCE
@ENDIF

;--- Flag #12, 13, 14, 15 and 16 see 'Confederate & Union BattleField Commanders', Confederate leaders killed section

@IF
CITYTAKEN
city=Lexington *
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Confederates
State=On
Flag=17 ; Capture of Lexington * and Knoxville ends guerrila bands in Kentucky
JUSTONCE
@ENDIF


;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- UNION FLAGS ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Island No. 10
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=0 ; The capture of the 5 Mississippi cities will cut off Confederates reinforcements from the eastern states
JUSTONCE
TEXT
The Confederate garrison of Island No. 10 surrenders to Union forces!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Memphis
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=1 ; The capture of the 5 Mississippi cities will cut off Confederates reinforcements from the eastern states
JUSTONCE
TEXT
Memphis Captured by Union Forces!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Vicksburg
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=2 ; The capture of the 5 Mississippi cities will cut off Confederates reinforcements from the eastern states
JUSTONCE
TEXT
VICKSBURG FALLS TO UNION FORCES!
^
The last great Confederate defensive bastion along the Mississippi falls 
to Union troops and is an important step in breaking the Southern bid 
for independence.
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Baton Rouge
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=3 ; The capture of the 5 Mississippi cities will cut off Confederates reinforcements from the eastern states
JUSTONCE
TEXT
Baton Rouge Surrenders!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=New Orleans
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=4 ; The capture of the 5 Mississippi cities will cut off Confederates reinforcements from the eastern states
JUSTONCE
TEXT
NEW ORLEANS FALLS TO FEDERAL FORCES!
^
The Confederacys greatest city, as well as the entrance to the great Mississippi 
river is now under Union control. 
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Richmond
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=5 ; 
JUSTONCE
TEXT
RICHMOND SURRENDERS TO UNION TROOPS!
^
Jefferson Davis and his cabinet flee south to avoid capture and vow to continue the struggle.
But can the end of the war be far off...
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Nashville
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=6 ; 
JUSTONCE
TEXT
Nashville Surrenders!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Chattanooga
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=7 ; 
JUSTONCE
TEXT
Chattanooga Surrenders!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Atlanta
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=8 ; 
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Charleston SC
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=9 ; 
JUSTONCE
TEXT
Charleston SC Surrenders!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Columbia
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=10 ; 
@ENDIF

@IF
CITYTAKEN
city=Mobile
attacker=Union
defender=Confederates
@THEN
Flag
Continuous
Who=Union
State=On
Flag=11 ; 
@ENDIF

@IF
TURN
turn=12
@THEN
Flag
Continuous
Who=Union
State=On
Flag=12 ; Activates Antietam Unit KIA Counter
JUSTONCE
TEXT
LINCOLN REQUIRES MILTIARY SUCCESS ON THE BATTLEFIELD TO AVERT EUROPEAN INTERVENTION!
^
As the Commander-in-chief, you need to demonstrate to the European powers that you are
fighting for more then the preservation of the Union but for a higher moral cause, i.e. the 
abolition of slavery on the continent through the Emancipation Proclamation.
^
But you cannot emit the Proclamation without gaining a victory on the battlefield and 
thereby demonstrating that your ability to emancipate the slaves is backed by more than 
words...
ENDTEXT
@ENDIF

@IF
TURN
turn=12
@THEN
TEXT
... As such you have till the end of September 1862 to defeat 5 CSA Infantry units. Failure to 
do so will prevent you from emitting the Proclamation in a timely manner and bring France and 
England on the side of the Confederacy. 
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=CSA Infantry
attacker=Union
defender=Confederates
@AND
CheckFlag
Who=Union
Flag=12	; 
State=On
@THEN
Flag
Continuous
Who=Union
State=On
Flag=13 ; 
JUSTONCE
TEXT
1st CSA Infantry killed!
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=CSA Infantry
attacker=Union
defender=Confederates
@AND
CheckFlag
Who=Union
Flag=13	; 1st CSA Infantry Killed
State=On
@THEN
Flag
Continuous
Who=Union
State=On
Flag=14 ; 
JUSTONCE
TEXT
2nd CSA Infantry killed!
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=CSA Infantry
attacker=Union
defender=Confederates
@AND
CheckFlag
Who=Union
Flag=14	; 2nd CSA Infantry Killed
State=On
@THEN
Flag
Continuous
Who=Union
State=On
Flag=15 ; 
JUSTONCE
TEXT
3rd CSA Infantry killed!
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=CSA Infantry
attacker=Union
defender=Confederates
@AND
CheckFlag
Who=Union
Flag=15	; 3rd CSA Infantry Killed
State=On
@THEN
Flag
Continuous
Who=Union
State=On
Flag=16 ; 
JUSTONCE
TEXT
4th CSA Infantry killed!
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=CSA Infantry
attacker=Union
defender=Confederates
@AND
CheckFlag
Who=Union
Flag=16	; 4th CSA Infantry Killed
State=On
@THEN
Flag
Continuous
Who=Union
State=On
Flag=17 ; Emancipation Proclamation Given
JUSTONCE
TEXT
5th CSA Infantry killed!
ENDTEXT
@ENDIF

;--- Flag #18 see 'European Intervention' section


;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- USMRR Recruitments ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RECEIVEDTECHNOLOGY
technology=16
receiver=Union
@THEN
JUSTONCE
TEXT
The Lincoln administration sets up the new U.S. Military RailRoad department.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=16
receiver=Union	 
@AND
RANDOMTURN
denominator=5
@THEN
TEXT
A new engineer units joins the U.S.M.R.R. department!
ENDTEXT
CREATEUNIT
unit=Engineers
owner=Union
veteran=no
homecity=None
Randomize
locations
134,18
100,26
126,24
60,22
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- US Spy ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=Union
@THEN
JUSTONCE
TEXT
Allan Pinkerton sets up the Pinkerton National Detective Agency which 
will lead the Union Intelligence Service.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=Spy
owner=Union
veteran=no
homecity=None
Randomize
locations
134,18
126,24
119,33
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=Union	 
@AND
RANDOMTURN
denominator=8
@THEN
TEXT
A new agent is added to the Pinkerton Agency!
ENDTEXT
CREATEUNIT
unit=Spy
owner=Union
veteran=no
homecity=None
Randomize
locations
134,18
126,24
119,33
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Union Maine Militia 'Reinforcements' ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RANDOMTURN
denominator=2
@THEN
TEXT
Successful Union recruitment drive in New England sends a new infantry brigade south!
ENDTEXT
CREATEUNIT
unit=Maine Inf.
owner=Union
veteran=no
homecity=None
Randomize
locations
142,0
129,1
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Union Sharpshooter Brigades ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CheckFlag
Who=Union
Mask=0x92
Count=2
State=On
@THEN
JUSTONCE
TEXT
ELITE TROOPS TO JOIN FEDERAL RANKS!
^
Union successes in the Western Theather have produced a growing cadre of elite veteran troops. 
^
Sharpshooter units will now be randomly generated for the Union player.
ENDTEXT
GiveTechnology		
receiver=Union
technology=77
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=77
receiver=Union
@AND
RANDOMTURN
denominator=3
@THEN
TEXT
A new sharpshooter unit joins the ranks of the Union army.
ENDTEXT
CREATEUNIT
unit=Sharpshooter
owner=Union
veteran=Yes
homecity=None
Randomize
locations
51,31
69,35
86,32
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Union Observation Balloons ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
Turn
turn=7
@THEN
TEXT
UNION ADOPTS BALLOON CORPS!
^
On July 17, 1861, Thaddeus Lowe demonstrated his ideas for balloon reconnaissance to 
President Lincoln. Impressed, Lincoln established the Balloon Corps later that summer.
^
The Union army deploys 3 Observation Balloon units with its frontline troops.
ENDTEXT
CREATEUNIT
unit=Obsv. Balloon
count=3
owner=Union
veteran=no
homecity=None
Randomize
locations
62,48
78,38
126,24
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Union Training Camps ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CheckFlag
Who=Union
Mask=0x96
Count=3
State=On
@THEN
JUSTONCE
TEXT
UNION ARMY SUCCESSES PROVIDES GROWING CADRE OF EXPERIENCE OFFICERS!
^
The Union player may now build Training Camps.
ENDTEXT
GiveTechnology		
receiver=Union
technology=90
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Union Controls Mississippi River ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CheckFlag
Who=Union
Mask=0x1F
Count=5
State=On
@THEN
JUSTONCE
TEXT
UNION ARMY CONTROLS MISSISSIPPI RIVER VALLEY!
^
The Union army has seized the last Confederate held bastion along the Mississippi river 
thereby cutting the Confederacy in two. The Confederate western states can no longer send 
reinforcements to fight in the East.
ENDTEXT
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Gettysburg Address  ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CheckFlag
Who=Confederates
Mask=0x1F000
Count=3
State=On
@THEN
JUSTONCE
TEXT
UNION DEFEATS 3RD CONFEDERATE GENERAL - LINCOLN DELIVERS GETTYSBURG ADDRESS!
^
The Battle of Gettysburg had taken place in rural Pennsylvania for the first three days of July in 1863. 
The magnitude of the battle had stunned the nation. Thousands of men, had been killed and had been hastily 
buried after the battle months earlier, and they were finally being properly reburied. A ceremony was to 
be held to dedicate the new cemetery and Lincoln was invited to offer remarks. 
^
The text is brief, three paragraphs amounting to less than 300 words. It only takes the President a few 
minutes to read it, yet the address has gone down in history as one of the most eloquent and often quoted 
speech in American history...
ENDTEXT
PlayWaveFile
gettysburg-address-jd.wav
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Emancipation Proclamation, Freed Slaves & Black Regiment  ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CheckFlag
Who=Union
Flag=17	; Union kills 5th CSA Infantry starting January 1862
State=On
@THEN
GIVETECHNOLOGY
technology=82
receiver=Union
JUSTONCE
TEXT
EMANCIPATION PROCLAMATION ISSUED!
^
President Abraham Lincoln issues the Emancipation Proclamation, which declares the 
freedom of all slaves in any state of the Confederate States of America.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=82
receiver=Union
@AND
RANDOMTURN
denominator=2
@THEN
TEXT
Congress funds the creation of a new Black Regiment.
ENDTEXT
CREATEUNIT
unit=Black Regiment
owner=Union
veteran=no
homecity=None
Randomize
locations
126,24
134,18
139,5
endlocations
@ENDIF

@IF
UNITKILLED
unit=Slaves
attacker=Union
defender=Confederates
@THEN
TEXT
Slaves recently freed by Federal troops marching through the South, have responded by 
enlisting in a newly formed "Colored Regiment" of the Federal Army.
ENDTEXT
Delay
delay=3
CREATEUNIT
unit=Black Regiment
owner=Union
veteran=no
homecity=none
Randomize
locations
78,38
73,45
68,60
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- European Intervention ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
TURN
turn=19
@AND
CheckFlag
Who=Union
Flag=17	; Lincoln issued Emancipation Proclamation thereby averting European Intervention
State=On
@THEN
JUSTONCE
TEXT
EUROPEAN INTERVENTION FORESTALLED!
^
The recent Union military successes combined with the issuance of the Emancipation Proclamation
have removed any hope the Confederacy may have held with regards European intervention on their behalf. 
ENDTEXT
@ENDIF

@IF
TURN
turn=19
@AND
CheckFlag
Who=Union
Flag=17	; Lincoln failed to issue Emancipation Proclamation in time thereby precipitating European Intervention
State=Off
@THEN
JUSTONCE
Flag
Continuous
Who=Union
Flag=18 ; European Intervention Activated
State=On
TEXT
ENGLAND AND FRANCE DECLARE WAR!
^
Having failed to demonstrate its ability to overcome the Confederacy militarily or 
demonstrate a higher moral purpose in the conflict, England and France enter the war against 
the Union to secure their supply to Southern cotton.
ENDTEXT
@ENDIF

;--- FRANCE ---

@IF
CheckFlag
Who=Union
Flag=18	; French Military Activated
State=On
@THEN
JUSTONCE
GIVETECHNOLOGY
technology=27
receiver=French
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=27
receiver=French
@THEN
JUSTONCE
GIVETECHNOLOGY
technology=73
receiver=French
TEXT
The French army begins preparations for operations against the Union!
ENDTEXT
@ENDIF

;--- Gulf of Mexico expedition

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=French
@THEN
JUSTONCE
TEXT
France lands an expeditionary force along the Gulf of Mexico.
ENDTEXT
Delay
delay=3
CREATEUNIT
unit=French Infantry
count=6
owner=French
veteran=Yes
homecity=None
locations
52,108
56,102
68,98
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=French
@THEN
JUSTONCE
Delay
delay=3
CREATEUNIT
unit=French Cavalry
count=2
owner=French
veteran=Yes
homecity=None
locations
52,108
56,102
68,98
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=French
@THEN
JUSTONCE
Delay
delay=3
CREATEUNIT
unit=French Art.
count=2
owner=French
veteran=Yes
homecity=None
locations
52,108
56,102
68,98
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=French
@THEN
JUSTONCE
Delay
delay=3
CREATEUNIT
unit=European Frigate
count=3
owner=French
veteran=Yes
homecity=None
Randomize
locations
52,111
58,104
67,101
endlocations
@ENDIF

;--- Georgia Coast expedition

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=French
@THEN
JUSTONCE
TEXT
France sends an expeditionary force to Georgia.
ENDTEXT
Delay
delay=5
CREATEUNIT
unit=French Infantry
count=4
owner=French
veteran=Yes
homecity=None
locations
104,90
104,86
108,80
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=French
@THEN
JUSTONCE
Delay
delay=5
CREATEUNIT
unit=French Cavalry
owner=French
veteran=Yes
homecity=None
locations
104,90
104,86
108,80
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=French
@THEN
JUSTONCE
Delay
delay=5
CREATEUNIT
unit=French Art.
owner=French
veteran=Yes
homecity=None
locations
104,90
104,86
108,80
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=French
@THEN
JUSTONCE
Delay
delay=5
CREATEUNIT
unit=European Frigate
count=2
owner=French
veteran=Yes
homecity=None
Randomize
locations
106,92
107,85
110,82
endlocations
@ENDIF

;--- ENGLAND ---

@IF
CheckFlag
Who=Union
Flag=18	; English Military Activated
State=On
@THEN
JUSTONCE
GIVETECHNOLOGY
technology=27
receiver=English
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=27
receiver=English
@THEN
JUSTONCE
GIVETECHNOLOGY
technology=68
receiver=English
TEXT
The English army begins preparations for operations against the Union!
ENDTEXT
@ENDIF

;--- Generate random Naval Sheels once received Tech 68
@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Naval Shell
owner=English
veteran=no
homecity=None
Randomize
locations
100,4
85,17
127,119
136,128
endlocations
@ENDIF

;--- British forces in Canada

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
TEXT
England's activates its army in Canada.
ENDTEXT
Delay
delay=1
CREATEUNIT
unit=British Infantry
count=3
owner=English
veteran=Yes
homecity=None
Randomize
locations
99,7
85,17
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
Delay
delay=1
CREATEUNIT
unit=British Cavalry
count=2
owner=English
veteran=Yes
homecity=None
Randomize
locations
99,7
85,17
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
Delay
delay=1
CREATEUNIT
unit=British Art.
count=2
owner=English
veteran=Yes
homecity=None
Randomize
locations
99,7
85,17
endlocations
@ENDIF

;--- British forces off East coast

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
TEXT
A large British invasion forces lands off the coast of New England.
ENDTEXT
Delay
delay=5
CREATEUNIT
unit=British Infantry
count=4
owner=English
veteran=Yes
homecity=None
locations
146,6
147,7
147,9
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
Delay
delay=5
CREATEUNIT
unit=British Cavalry
owner=English
veteran=Yes
homecity=None
locations
146,6
147,7
147,9
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
Delay
delay=5
CREATEUNIT
unit=British Art.
owner=English
veteran=Yes
homecity=None
locations
146,6
147,7
147,9
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
TEXT
A large British invasion forces lands off the coast of New York.
ENDTEXT
Delay
delay=6
CREATEUNIT
unit=British Infantry
count=5
owner=English
veteran=Yes
homecity=None
locations
138,16
133,21
138,12
132,24
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
Delay
delay=6
CREATEUNIT
unit=British Cavalry
count=2
owner=English
veteran=Yes
homecity=None
locations
138,16
133,21
138,12
132,24
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
Delay
delay=6
CREATEUNIT
unit=British Art.
count=2
owner=English
veteran=Yes
homecity=None
locations
138,16
133,21
138,12
132,24
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
TEXT
A large English naval force is spotted of the coast of New England.
ENDTEXT
Delay
delay=4
CREATEUNIT
unit=European Frigate
count=5
owner=English
veteran=Yes
homecity=None
Randomize
locations
152,6
148,12
141,15
136,26
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=English
@THEN
JUSTONCE
TEXT
An English naval force arrives in the Bahamas.
ENDTEXT
Delay
delay=2
CREATEUNIT
unit=European Frigate
count=2
owner=English
veteran=Yes
homecity=None
Randomize
locations
131,123
140,128
139,121
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Union 1864 Election & Pre-election notice ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
TURN
turn=32
@THEN
JUSTONCE
TEXT
THE 1864 NOVEMBER PRESIDENTIAL ELECTIONS ARE COMING!
^
President Lincoln you face re-election in one year in November 1864. If you haven't already 
done so you must re-double your efforts to capture at least 3 of the following cities: 
New Orleans, Chattanooga, Atlanta, or Richmond. Failure to capture any combination of these 
objectives will result in your loss at the ballot box and the victory of your Democratic 
opponent and ultimately Southern independence.
ENDTEXT
@ENDIF

@IF
TURN
turn=44
@AND
CheckFlag
Who=Union
Mask=0x1B0
Count=2
State=Off
@THEN
JUSTONCE
TEXT
ABRAHAM LINCOLN LOSES THE 1864 NOVEMBER PRESIDENTIAL ELECTION! 
^
Having failed to bring about military success on the battlefield
President Lincoln loses the support of the people of the Northern
States. No longer willing to carry the heavy burden of war the newly
elected leader of the Democratic Party begins peace talks.
^
THE WAR IS OVER! THE SOUTH HAS WON IT'S INDEPENDENCE!
ENDTEXT
EndGame
endscreens=yes
@ENDIF

@IF
TURN
turn=44
@AND
CheckFlag
Who=Union
Mask=0x1B0
Count=3
State=On
@THEN
JUSTONCE
TEXT
ABRAHAM LINCOLN WINS THE 1864 PRESIDENTIAL ELECTION! 
^
Having led successful military campaigns and secured many of the primary Southern cities,
Lincoln and the Republican party vow to continue the war until the Union is restored.
ENDTEXT
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Winter / Summer Season changes ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
Turn
turn=8
@THEN
JUSTONCE
Text
Turn 8: November, 1861.
^
IMPORTANT GAME COMMUNIQUE: FILE CHANGE
^
Winter sets in on the North American continent. The weather will hinder land/naval operations for the next few months.
^
Save the game, Exit ToT, and run the AHD1861.bat file. Select option 2, November, 1861  
EndText
@ENDIF

@IF
Turn
turn=13
@THEN
JUSTONCE
Text
Turn 13: April, 1862.
^
IMPORTANT GAME COMMUNIQUE: FILE CHANGE
^
Spring returns! Both combatants are likely to renew their land/naval operations with vigour.
^
Save the game, Exit ToT, and run the AHD1861.bat file. Select option 3, April, 1862  
EndText
@ENDIF

@IF
Turn
turn=20
@THEN
JUSTONCE
Text
Turn 20: November, 1862.
^
IMPORTANT GAME COMMUNIQUE: FILE CHANGE
^
Winter sets in on the North American continent. The weather will hinder land/naval operations for the next few months.
^
Save the game, Exit ToT, and run the AHD1861.bat file. Select option 4, November, 1862  
EndText
@ENDIF

@IF
Turn
turn=25
@THEN
JUSTONCE
Text
Turn 25: April, 1863.
^
IMPORTANT GAME COMMUNIQUE: FILE CHANGE
^
Spring returns! Both combatants are likely to renew their land/naval operations with vigour.
^
Save the game, Exit ToT, and run the AHD1861.bat file. Select option 5, April, 1863  
EndText
@ENDIF

@IF
Turn
turn=32
@THEN
JUSTONCE
Text
Turn 32: November, 1863.
^
IMPORTANT GAME COMMUNIQUE: FILE CHANGE
^
Winter sets in on the North American continent. The weather will hinder land/naval operations for the next few months.
^
Save the game, Exit ToT, and run the AHD1861.bat file. Select option 6, November, 1863  
EndText
@ENDIF

@IF
Turn
turn=37
@THEN
JUSTONCE
Text
Turn 37: April, 1864.
^
IMPORTANT GAME COMMUNIQUE: FILE CHANGE
^
Spring returns! Both combatants are likely to renew their land/naval operations with vigour.
^
Save the game, Exit ToT, and run the AHD1861.bat file. Select option 7, April, 1864  
EndText
@ENDIF

@IF
Turn
turn=44
@THEN
JUSTONCE
Text
Turn 44: November, 1864.
^
IMPORTANT GAME COMMUNIQUE: FILE CHANGE
^
Winter sets in on the North American continent. The weather will hinder land/naval operations for the next few months.
^
Save the game, Exit ToT, and run the AHD1861.bat file. Select option 8, November, 1864  
EndText
@ENDIF

@IF
Turn
turn=49
@THEN
JUSTONCE
Text
Turn 49: April, 1865.
^
IMPORTANT GAME COMMUNIQUE: FILE CHANGE
^
Spring returns! Both combatants are likely to renew their land/naval operations with vigour.
^
Save the game, Exit ToT, and run the AHD1861.bat file. Select option 9, April, 1865  
EndText
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Negotiations ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
NEGOTIATION
talker=Anybody
talkertype=HumanOrComputer
listener=Anybody
listenertype=HumanOrComputer
@THEN
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Confederates
whom=Union
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Union
whom=Confederates
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Border States
whom=Union
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Union
whom=Border States
@ENDIF

;Europeans

@IF
CheckFlag
Who=Union
Flag=18	; European Intervention activated!
State=On
@AND
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=French
whom=Union
@ENDIF

@IF
CheckFlag
Who=Union
Flag=18	; European Intervention activated!
State=On
@AND
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Union
whom=French
@ENDIF

@IF
CheckFlag
Who=Union
Flag=18	; European Intervention activated!
State=On
@AND
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=English
whom=Union
@ENDIF

@IF
CheckFlag
Who=Union
Flag=18	; European Intervention activated!
State=On
@AND
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Union
whom=English
@ENDIF


@ENDEVENTS

